// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, putRequest, deleteRequest, importRequest, getRequestWithNoToken } from '@/libs/axios';

// 获取轮播图数据 多条件
export const getBannerList = (params) => {
    return getRequest('/banner/getByCondition', params)
}

// 添加轮播图
export const addBanner = (params) => {
    return postRequest('/banner/add', params)
}
// 编辑轮播图
export const editBanner = (params) => {
    return postRequest('/banner/edit', params)
}
// 启用轮播图
export const enableBanner = (id, params) => {
    return postRequest(`/banner/enable/${id}`, params)
}
// 禁用轮播图
export const disableBanner = (id, params) => {
    return postRequest(`/banner/disable/${id}`, params)
}
// 删除轮播图
export const deleteBanner = (ids, params) => {
    return deleteRequest(`/banner/delByIds/${ids}`, params)
}
